import request from '@/utils/request'

// 查询身份晋升列表
export function listIdentity(query) {
  return request({
    url: '/InfoIdentityUp/identity/list',
    method: 'get',
    params: query
  })
}

// 查询身份晋升详细
export function getIdentity(id) {
  return request({
    url: '/InfoIdentityUp/identity/' + id,
    method: 'get'
  })
}

// 新增身份晋升
export function addIdentity(data) {
  return request({
    url: '/InfoIdentityUp/identity',
    method: 'post',
    data: data
  })
}

// 修改身份晋升
export function updateIdentity(data) {
  return request({
    url: '/InfoIdentityUp/identity',
    method: 'put',
    data: data
  })
}

// 删除身份晋升
export function delIdentity(id) {
  return request({
    url: '/InfoIdentityUp/identity/' + id,
    method: 'delete'
  })
}
export function listUserById(id) {
  return request({
    url: '/InfoIdentityUp/identity/listUserById/' + id,
    method: 'get'
  })
}
